home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / www / src / midaswww-1.0 / midasoperand.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-16  |  602 b   |  44 lines

  1. #ifndef MIDASOPERAND
  2. #define MIDASOPERAND
  3.  
  4. typedef char *MidasType;
  5.  
  6. typedef struct {
  7.  
  8.   char *Symbol;
  9.   int  Precedence;
  10.   MidasType Op1;
  11.   MidasType Op2;
  12.   MidasType Result; 
  13.  
  14. } MidasOperator;
  15.  
  16. typedef struct {
  17.  
  18.   MidasType Type;
  19.   Boolean   Dynamic;
  20.   union {
  21.     XtPointer P;
  22.     int I;
  23.     float F;
  24.     short S;
  25.     Boolean B;
  26.   } Value;
  27.  
  28. } MidasOperand;
  29.  
  30. typedef struct {
  31.  
  32.   MidasOperand   Operand;
  33.   MidasOperator *Op;
  34.  
  35. } MidasStack;
  36.  
  37. #define MString  "String"
  38. #define MInt     "Int"
  39. #define MBoolean "Boolean"
  40. #define MFloat   "Float"
  41. #define MWidget  "Widget"
  42. #define MNumber  "Number"
  43. #endif
  44.